package unit5;

import java.util.Date;


public class PersonTest {
	public static void main(String[] args) {
		Person[] people=new Person[2];
//		fill the people array with Student and Employee objects
		people[0]=new Employee("Mike",50000,new Date());
		people[1]=new Student("Tony", "Computer science");
		
//		print out names and descriptions of all Person objects
		for(Person p:people)
			System.out.println(p.getName()+","+p.getDescription());
		Employee e=new Employee("mike", 5454545,new Date());
		System.out.println(e);
	}
}
